package com.zdkj.subway.stm.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zdkj.subway.stm.dto.out.SwStOneWayStatisticsDTO;
import com.zdkj.subway.stm.entity.SwStOneWayStatistics;
import com.zdkj.subway.stm.mapper.SwStOneWayStatisticsMapper;
import com.zdkj.subway.stm.service.SwStOneWayStatisticsService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 单程票流失率统计表
 *
 * @author cui_com
 * @date 2020-08-21 15:39:25
 */
@Service
@AllArgsConstructor
public class SwStOneWayStatisticsServiceImpl extends ServiceImpl<SwStOneWayStatisticsMapper, SwStOneWayStatistics> implements SwStOneWayStatisticsService {

    private SwStOneWayStatisticsMapper swStOneWayStatisticsMapper;

    @Override
    public IPage<SwStOneWayStatisticsDTO> calcListPage(IPage page,String startTime,String endTime) {
        return swStOneWayStatisticsMapper.calcListPage(page, startTime,endTime);
    }

    @Override
    public List<SwStOneWayStatisticsDTO> calcData(String dateString) {
        return swStOneWayStatisticsMapper.calcData(dateString);
    }

    @Override
    public List<SwStOneWayStatisticsDTO> calcDatas(String startTime,String endTime) {
        return swStOneWayStatisticsMapper.calcDatas(startTime,endTime);
    }

    @Override
    public SwStOneWayStatisticsDTO calcPreMonthAmount(String time,String lineCode) {
        return swStOneWayStatisticsMapper.calcPreMonthAmount(time,lineCode);
    }


}
